<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Invoice</title>
    
    <?php $this->load->view('library/header');?>
    <style type="text/css">
        body {
            background-color: #eff0f4;
        }
        .sticky-header .main-content {
            margin: 0 auto;
            width: 980px;
            padding: 0;
        }
    </style>
</head>

<body class="sticky-header">

<section>

    <!-- main content start-->
    <div class="main-content" >

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="panel">
                <div class="panel-body invoice">
                    <div class="row">
                        <div class="col-md-4 col-sm-4">
                            <h1 style="margin: 0; padding: 0;" class="invoice-title">invoice</h1>
                        </div>
                    </div>
                    <div class="invoice-address">
                        <div class="row">
                            <table width="100%" style="vertical-align: top; line-height: 26px;">
                                <tr >
                                    <td width="50%"><span>Order NO. </span> #<?php echo $order_info['order_sn'];?>, <span>Site :</span> <?php echo $siteweb_info['web_name'];?></td>
                                    <td>payment method :</span> <?php echo $order_info['payment_name'];?></td>
                                </tr>
                                <tr>
                                    <td><?php echo $order_info['country'] . ', ' . $order_info['province'] . ', ' . $order_info['city'];?><br>
                                        <?php echo $order_info['address'];?> <br>
                                        zip: <?php echo $order_info['zip'];?>,
                                        phone: <?php echo $order_info['phone'];?></td>
                                    <td style="vertical-align: top;">
                                        Name: <?php echo $order_info['user_name'];?><br>
                                        email: <?php echo $order_info['email'];?>
                                        <br>
                                        Mode of transport :</span> <?php echo $order_info['shipping_name'];?>
                                    </td>
                                </tr>
                            </table>
                            <div class="col-md-4 col-md-offset-3 col-sm-4 col-sm-offset-3">
                                <div class="inv-col"><span></div>
                                <div class="inv-col"><span></div>
                                <div class="inv-col"></div>
                                <div class="inv-col"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <table class="table table-bordered table-invoice">
                    <thead>
                    <tr>
                        <td class="text-center">Image</td>
                        <td class="text-center">Item number</td>
                        <td>Attributes</td>
                        <td class="text-center">Price</td>
                        <td class="text-center">Quantity</td>
                        <td class="text-center">Total</td>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($order_goods as $item):?>
                        <tr>
                            <td class="text-center"><img width="80" src="<?php echo $item['original_img'];?>" /></td>
                            <td class="text-center"><?php echo $item['sku_num_sn'];?></td>
                            <td><?php echo $item['goods_attr'];?></td>
                            <td class="text-center"><strong>$ <?php echo $item['goods_price'];?></strong></td>
                            <td class="text-center"><strong><?php echo $item['goods_number'];?></strong></td>
                            <td class="text-center"><strong>$<?php echo $item['goods_price'] * $item['goods_number'];?></strong></td>
                        </tr>
                    <?php endforeach;?>
                    <tr>
                        <td colspan="5" class="payment-method" style="vertical-align: top !important; text-align: left;">
                            <p>Total amount of goods：USD<?php echo $order_info['goods_amount'];?> - Discount：USD<?php echo $order_info['discounts_amount'];?> + Shipping fees：USD<?php echo $order_info['shipping_fee'];?></p>
                        </td>
                        <td class="text-right" style="padding: 0 20px;" colspan="3">
                            <p style="margin-top: 50px;"><strong>total amount: <?php echo $order_info['order_amount'];?></strong></p>
                        </td>
                    </tr>

                    </tbody>
                </table>
            </div>

        </div>
        <!--body wrapper end-->


    </div>
    <!-- main content end-->
</section>

<?php $this->load->view('library/footer');?>

</body>
</html>
